Ext.define('carManage.view.driverInfo.EditOrAddForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.editOrAddForm',
    labelWidth: 80,
    width: '100%',
    height: '100%',
    bodyStyle: 'padding: 4px',
    border: false,
    autoscroll: true,
    frame: false,
    autoScroll: true,
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [
                        {
                            xtype: "hidden",
                            fieldLabel: "编号",
                            name: 'id',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "驾驶员姓名*",
                            emptyText: '驾驶员姓名(必填)',
                            disabled: false,
                            allowBlank: false,
                            name: 'name',
                            anchor: "90%"
                        },
                        {
                            xtype: 'hidden',
                            name: 'head_image'
                        },
                        {
                            xtype: "radiogroup",
                            fieldLabel: "性别",
                            emptyText: '性别',
                            disabled: false,
                            anchor: "90%",
                            items: [
                                {
                                    boxLabel: '男',
                                    name: 'sex',
                                    inputValue: '1',
                                    checked: true
                                },
                                {
                                    boxLabel: '女',
                                    name: 'sex',
                                    inputValue: '2'
                                }
                            ]
                        },
                        {
                            xtype: 'datefield',
                            fieldLabel: '出生年月',
                            name: 'born',
                            altFormats: 'Ymd',
                            format: 'Ymd',
                            dateFormat: 'Ymd',
                            // columnWidth: .9,
                            emptyText: '出生年月',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "身份证号码",
                            emptyText: '身份证号码',
                            disabled: false,
                            name: 'id_code',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "手机号码",
                            emptyText: '手机号码',
                            disabled: false,
                            name: 'phone_num',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "准驾车型",
                            emptyText: '准驾车型',
                            disabled: false,
                            name: 'car_model',
                            anchor: "90%"
                        },
                        {
                            xtype: "radiogroup",
                            fieldLabel: "是否兼职",
                            emptyText: '',
                            disabled: false,
                            anchor: "90%",
                            items: [
                                {
                                    boxLabel: '是',
                                    name: 'sideline',
                                    inputValue: 'yes'
                                },
                                {
                                    boxLabel: '否',
                                    name: 'sideline',
                                    inputValue: 'no',
                                    checked: true
                                }
                            ]
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "工作经历",
                            emptyText: '工作经历',
                            disabled: false,
                            name: 'experience',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "个人荣誉",
                            emptyText: '个人荣誉',
                            disabled: false,
                            name: 'glory',
                            anchor: "90%"
                        },
                        {
                            xtype: "textfield",
                            fieldLabel: "缩写",
                            emptyText: '缩写',
                            disabled: false,
                            name: 'ab',
                            anchor: "90%"
                        }
                    ]
                }]
        }],
    initComponent: function() {
        this.callParent(arguments);
    }
});